﻿using System.Configuration;

namespace Framework.CustomConfigurationSectionsDefinition
{
    public class UnityBindingCollection : ConfigurationElementCollection
    {
        protected override ConfigurationElement CreateNewElement()
        {
            return new UnityBindingElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((UnityBindingElement)(element)).Class;
        }

        public UnityBindingElement this[int index]
        {
            get { return (UnityBindingElement)BaseGet(index); }
        }
    }
}
